package cn.walket.cloud.user.role.controller;

import cn.walket.cloud.user.dao.mapper.UserMapper;
import cn.walket.cloud.user.remote.ConfigRemote;
import cn.walket.cloud.user.role.dao.mapper.RoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RoleController {

  @Autowired
  RoleMapper userMapper;
  @Autowired
  ConfigRemote configRemote;

  @RequestMapping("/role")
  public String getPort() {
    return configRemote.getPort() + " " + userMapper.selectById("123456");
  }

}
